package cn.stylefeng.guns.modular.demos.wrapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.stylefeng.guns.modular.demos.constant.factory.BconstantFactory;
import cn.stylefeng.guns.modular.demos.constant.factory.PassCheckStatusEnum;
import cn.stylefeng.guns.sys.core.constant.factory.ConstantFactory;
import cn.stylefeng.guns.sys.core.util.DecimalUtil;
import cn.stylefeng.roses.core.base.warpper.BaseControllerWrapper;
import cn.stylefeng.roses.kernel.model.page.PageResult;

/**
 * 停车场管理的包装类
 *
 * @author zjj
 * @date 2019年5月27日 下午12:57:03
 */
public class BizPassCheckRequestWrapper extends BaseControllerWrapper {

	public BizPassCheckRequestWrapper(List<Map<String, Object>> multi) {
		super(multi);
		// TODO Auto-generated constructor stub
	}
	
	public BizPassCheckRequestWrapper(Map<String, Object> single) {
        super(single);
    }

    public BizPassCheckRequestWrapper(Page<Map<String, Object>> page) {
        super(page);
    }

    public BizPassCheckRequestWrapper(PageResult<Map<String, Object>> pageResult) {
        super(pageResult);
    }
	
	
	@Override
	protected void wrapTheMap(Map<String, Object> map) {
		// TODO Auto-generated method stub
		
		try{
			//无法强制类型转换 必须是 正确的类型才能获取
			Integer passCheckStatus =(Integer)map.get("passCheckStatus");
			map.put("passCheckStatus",PassCheckStatusEnum.getCnName(passCheckStatus));
		}catch(Exception e){
			//e.printStackTrace();
		}
		
		try{
			//String passCheckStatus =(String)map.get("passCheckStatus");
			//map.put("passCheckStatus",PassCheckStatusEnum.getCnName(passCheckStatus));
		}catch(Exception e){
			//e.printStackTrace();
		}
		
		
		 //map.put("ruName", BconstantFactory.me().getRescueUnitName(DecimalUtil.getLong(map.get("ruId"))));
	}

}
